package com.bajie.bjlisten.entity.response;

public enum BjUserCode implements ResultCode {
    BJUSER_UPDATE_FAIL(false, 25000, "用户更新失败"),
    BJUSER_GET_FAIL(false, 25001, "根据IMEI获取用户信息失败"),
    BJEBOOKSHELF_SELECT_ORROR(false, 25002, "当前用户书架里不存在此本小说，删除异常"),
    BJEBOOKSHELF_GET_FAIL(false, 25002, "删除书架异常"),
    BJEBOOKSHELF_ERROR(false, 25003, "小说已经存在用户书架里，不需要重复操作"),
    BJEBOOK_GET_FAIL(false, 25004, "查询异常"),
    BJSIGN_USER_GET_FAIL(false,25006,"无此用户"),
    BJEBOOKSHELF_FAIL(false, 25005, "小说书架查询异常");

    //操作代码
    boolean success;
    //操作代码
    int code;
    //提示信息
    String message;

    BjUserCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return false;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
